Skip to content

Conversation

@altman08
Copy link

What problem does this PR solve?

Issue Number: resolve

Problem Summary:

What is changed and the side effects?

Changed:

Side effects:

  • Performance effects:

  • Breaking backward compatibility:


Check List:

@yanglimingcn
Copy link
Contributor

LGTM

Comment on lines 72 to 84
int AddChannel(ChannelBase* sub_channel, ChannelHandle* handle) {
return AddChannel(sub_channel, "", OWNS_CHANNEL, handle);
}
int AddChannel(ChannelBase* sub_channel, const std::string& tag,
ChannelHandle* handle) {
return AddChannel(sub_channel, tag, OWNS_CHANNEL, handle);
}
int AddChannel(ChannelBase* sub_channel, ChannelOwnership ownership,
ChannelHandle* handle) {
return AddChannel(sub_channel, "", ownership, handle);
}
int AddChannel(ChannelBase* sub_channel, const std::string& tag,
ChannelOwnership ownership, ChannelHandle* handle);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think AddChannel has a combinatorial explosion problem.

int AddChannel(SelectiveChannel::SubChannelOptions);

Using the SubChannelOptions overloaded AddChannel function would be more suitable, as it offers better extensibility.

In the meantime, please update the comments for the AddChannel function.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@altman08 altman08 force-pushed the master branch 3 times, most recently from 89ea0d5 to 05d8424 Compare January 20, 2026 02:44
@yanglimingcn
Copy link
Contributor

LGTM

1 similar comment
@wwbmmm
Copy link
Contributor

wwbmmm commented Jan 20, 2026

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants